from pathlib import Path
import os
import sys
import django

BASE_DIR=Path(__file__).parent.parent.parent
sys.path.append(BASE_DIR)
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myauction.settings')
django.setup()
from api import models
# for i in range(1,36):
#     # news_obj=models.News.objects.create(content=f'古国神游，多情应笑我{i}',cover=f'{i}',user_id=1)
#     # models.NewsDetail.objects.create(key=f'{i}',cos_path=f'cos_path{i}',news=news_obj)
#     # models.NewsDetail.objects.create(key=f'{10*i}', cos_path=f'cos_path{10*i}', news=news_obj)
#     # models.UserInfo.objects.create(avatar='avatar_test',nickname=f'撒库拉{i}',telephone=13717565305)
#     # models.ViewerRecord.objects.create(news_id=3,user_id=i)
#     # models.CommentRecord.objects.create(news_id=3,content=f'评论测试***{i*10}',user_id=i)
#     models.CommentRecord.objects.create(news_id=3,user_id=1,reply_id=1,depth=2,content='测试评论的回复评论')
#     models.CommentRecord.objects.create(news_id=3, user_id=2, reply_id=1, depth=2,content='测试评论的回复评论拉拉')
#     models.CommentRecord.objects.create(news_id=3, user_id=3, reply_id=1, depth=2,content='测试评论的回复评论旺旺')
# models.CommentRecord.objects.create(news_id=3, user_id=4, reply_id=139, depth=3, content='测试评论的回复评论呕呕呕')
models.BidRecord.objects.create(item_id=1,user_id=2,price=1699)